package Entity;

import java.util.Date;

/**
 *
 * @author CONG
 */
public class Duration {
    private int accountLoanCode;
    private int loanTypeCode;
    private Date startDate;
    private float amountLoan;
    private Date endDate;
    private float balance;
    private boolean status;
    private boolean accepted;

    public Duration() {
    }

    public Duration(int accountLoanCode, int loanTypeCode, Date startDate, float amountLoan, Date endDate, float balance, boolean status, boolean accepted) {
        this.accountLoanCode = accountLoanCode;
        this.loanTypeCode = loanTypeCode;
        this.startDate = startDate;
        this.amountLoan = amountLoan;
        this.endDate = endDate;
        this.balance = balance;
        this.status = status;
        this.accepted = accepted;
    }
       public Duration( int loanTypeCode, Date startDate, float amountLoan, Date endDate, float balance, boolean status, boolean accepted) {
        this.loanTypeCode = loanTypeCode;
        this.startDate = startDate;
        this.amountLoan = amountLoan;
        this.endDate = endDate;
        this.balance = balance;
        this.status = status;
        this.accepted = accepted;
    }

    public boolean isAccepted() {
        return accepted;
    }

    public void setAccepted(boolean accepted) {
        this.accepted = accepted;
    }

    public int getAccountLoanCode() {
        return accountLoanCode;
    }

    public void setAccountLoanCode(int accountLoanCode) {
        this.accountLoanCode = accountLoanCode;
    }

    public float getAmountLoan() {
        return amountLoan;
    }

    public void setAmountLoan(float amountLoan) {
        this.amountLoan = amountLoan;
    }

    public float getBalance() {
        return balance;
    }

    public void setBalance(float balance) {
        this.balance = balance;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public int getLoanTypeCode() {
        return loanTypeCode;
    }

    public void setLoanTypeCode(int loanTypeCode) {
        this.loanTypeCode = loanTypeCode;
    }
    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }
       
    
}
